11. Exercise: Initialize a Path Object

22 11 AAK Path SC V2

Android Developer Documentation

Exercise

In this exercise you are going to initialize a Path object.

  1. In MyCanvasView, add a variable path and initialize it with a Path object to store the path that is being drawn when following the user's touch on the screen. Import android.graphics.Path for the Path.
private var path = Path()